Gikam.extend(coreUser.detailPage, {

    getBaseInfoTab: function () {
        var _this = this;
        return {
            type: 'tab',
            id: 'core-user-detail-base-info-tab',
            panels: [{
                title: 'CORE.MODULE.MDM.USERS.TAB.BASE_INFO',
                id: 'core-user-detail-base-info-panel',
                items: [{
                    type: 'form',
                    id: 'core-user-detail-base-info-form',
                    url: _this.getCompUrl('baseInfoForm'),
                    fields: limsUser.getBaseInfoFormFields(),
                    service: 'coreUserServiceImpl',
                    onLoadSuccess: function (data) {
                        if (_this.param.id) {
                            this.toFieldsReadonly(['id', 'ext$.feishunumber']);
                            this.removeFieldValidator('id', ['remote']);
                            Gikam.post(IFM_CONTEXT + '/core/module/item/files/queries', Gikam.getJsonWrapper({
                                f: {
                                    targetId: 'T_CORE_USER$' + _this.param.id,
                                    bizCategory_SEQ: 'SIGNATURE'
                                },
                                n: -1,
                                s: 50
                            })).done(function (fileList) {
                                if (!Gikam.isEmpty(fileList.rows)) {
                                    Gikam.getComp('core-user-detail-base-info-form').setData({
                                        ext$: {
                                            electronicsignature: fileList.rows[0].downloadUrl
                                        }
                                    }, false)
                                }
                            });
                        }
                    }
                }]
            }]
        }
    },

})